package khm24980.basic;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class J01_FoodNara {
	public static int Jm(int a,int b){ //a=받은돈 , b=먹은금액
		return a-b; // 받은돈-먹은금액을 계산해 잔돈을 리턴함
	}

	public static void main(String[] args) {
		int soju;
		int ck;
		int bd;
		int buga;
		soju = 3000;  //소주
		ck = 12000;   //치킨

		System.out.println("[ 음식나라 ]");
		System.out.println("-----------------------");
		soju=soju*2;
		System.out.println("소주\t2\t"+soju);
		System.out.println("너나치킨\t1\t"+ck);
		System.out.println("-----------------------");
		int gh = (soju+ck)/10*9; //과세합계
		buga = (soju+ck)/10; // 부가세
		System.out.println("과세합계\t\t"+gh);
		System.out.println("부가세\t\t"+buga);
		System.out.println("-----------------------");
		int c = soju+ck; // 총합계
		System.out.println("총합계\t\t"+c);
		bd = 50000; //받은돈
		System.out.println("받은금액\t\t"+bd);
		int jd = Jm(bd,c); //잔돈
		System.out.println("잔돈\t\t"+jd);
		System.out.println("-----------------------");
		long time = System.currentTimeMillis();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy. MM. dd HH:mm:ss");
		String str = sdf.format(new Date(time));
		System.out.println(str);
		
//		Calendar c = Calendar.getInstance();
//		SimpleDateFormat sdf = new SimpleDateFormat("yyyy. MM. dd HH:mm:ss");
//		System.out.println(sdf.format(c.getTime()));
		

	}

}
